package com.example.carefree_server.service.impl.i_departmentImpl;

import com.example.carefree_server.entity.Activity;
import com.example.carefree_server.entity.Pbactivity;
import com.example.carefree_server.mapper.m_departmentMapper.signInFormMapper;
import com.example.carefree_server.service.s_departmentService.signInFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Service
public class signInFormServiceImp implements signInFormService {
    @Autowired
    private signInFormMapper signInFormMapper;
    private Pbactivity p;
    @Override
    public void addtweet(Pbactivity pb) {
      signInFormMapper.tweetadd(pb);
    }

    @Override
    public Pbactivity selecttweet(Integer aid) {
    p =  signInFormMapper.selecttweet(aid);
    return p;
    }

    @Override
    public void deletetweet(Integer aid) {
        signInFormMapper.deletetweet(aid);
    }

    @Override
    public void updatetweet(Pbactivity pb) {
        signInFormMapper.updatetweet(pb);
    }

    @Override
    public List<Pbactivity> alltweet() {
       return signInFormMapper.alltweet();
    }

    @Override
    public List<Pbactivity> detweet(String did) {
        return signInFormMapper.detweet(did);
    }

}
